<?php
//
function myTest(){
    static $x = 0;
    echo $x;
    $x++;
}
//myTest();
//myTest();
//myTest();

$x = 5;
$y = 10;

function test (){
    global $x,$y;
    $y = $x + $y;
}
test();
//echo $y;



?>